/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.entry.wx.message;

import com.lehe.common.MessageEnumDto;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * 类的功能描述<br>
 *
 * @author 王丹
 * @since 2017-02-22
 */
public class RespBaseMessage {

    @XStreamOmitField
    private String errcode = MessageEnumDto.SUCCESS.getMessageCode();

    @XStreamOmitField
    private String errmsg = MessageEnumDto.SUCCESS.getMessageValue();

    public RespBaseMessage(){}

    public RespBaseMessage(MessageEnumDto messageEnum){
        this.errcode = messageEnum.getMessageCode();
        this.errmsg = messageEnum.getMessageValue();
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
}
